
<%-------------------------------------------------------------------
 * 页面名称：AccountUserInfo.jsp
 * 功能描述：查看个人信息
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>



<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%@ page import="cn.agiledata.bank.common.util.Constant"%>
<%
String path = request.getContextPath();
%>
<script language="javascript">
	function openPhoto(property) {
		window.open('<%=path%>/page/common/showPhoto.action?dbProperty='+property, '', 'height=400, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no') 
	}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				查看个人信息
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<!--Email地址-->
					<tr>
						<td width="20%" height="40" align="right">
							Email地址：
						</td>
						<td>
							<bean:write name="account" property="email" />
						</td>
					</tr>
					<!--真实姓名-->
					<tr>
						<td width="20%" height="40" align="right">
							真实姓名：
						</td>
						<td>
							<logic:empty name="idcardStatus">
     			您还未进行身份证认证，<a href="#"
									onclick="loading('<%=path%>/page/myspace/preSubmitIdcard.do');"
									class="redColor">点击这里进行身份证认证</a>
							</logic:empty>
							<logic:equal name="idcardStatus"
								value="<%=Constant.AUTHENTICATION_STATUS_TOPUBMITTED%>">
     			您还未进行身份证认证，<a href="#"
									onclick="loading('<%=path%>/page/myspace/preSubmitIdcard.do');"
									class="redColor">点击这里进行身份证认证</a>
							</logic:equal>
							<logic:equal name="idcardStatus"
								value="<%=Constant.AUTHENTICATION_STATUS_SUBMITTED%>">
     			您已经提交了身份证认证，正在审核中……
     		   </logic:equal>
							<logic:equal name="idcardStatus"
								value="<%=Constant.AUTHENTICATION_STATUS_PASS%>">
								<bean:write name="account" property="name" />
							</logic:equal>
							<logic:equal name="idcardStatus"
								value="<%=Constant.AUTHENTICATION_STATUS_UNPASS%>">
				您的身份证认证未通过，<a href="#"
									onclick="loading('<%=path%>/page/myspace/preSubmitIdcard.do');"
									class="redColor">点击这里重新进行身份证认证</a>
							</logic:equal>
						</td>
					</tr>
					<!--性别-->
					<tr>
						<td width="20%" height="40" align="right">
							性别：
						</td>
						<td>
							<ad:write name="account" property="gender" typeid="GENDER" />
						</td>
					</tr>
					<!--出生日期-->
					<tr>
						<td width="20%" height="40" align="right">
							出生日期：
						</td>
						<td>
							<bean:write name="account" format="yyyy-MM-dd"
								property="birthday" />
						</td>
					</tr>
					<!--证件类型/证件号码 -->
					<logic:equal name="idcardNoModifiable" value="true">
						<tr>
							<td width="20%" height="40" align="right">
								证件类型：
							</td>
							<td>
								<ad:write name="account" property="idType" typeid="ID_TYPE" />
							</td>
						</tr>
						<tr>
							<td width="20%" height="40" align="right">
								证件号码：
							</td>
							<td>
								<bean:write name="hideIdCode" />
							</td>
						</tr>
					</logic:equal>
					<!-- 电话号码 -->
					<tr>
						<td width="20%" height="40" align="right">
							电话号码：
						</td>
						<td>
							<bean:write name="account" property="tel" />
						</td>
					</tr>
					<!-- 手机号码 -->
					<tr>
						<td width="20%" height="40" align="right">
							手机号码：
						</td>
						<td>
							<logic:empty name="account" property="mobile">您还未绑定手机，
             	<a href="<%=path%>/route.do?modual=space$mobile"></a>
								<a href="<%=path%>/route.do?modual=space$mobile"
									onclick="loading('<%=path%>/route.do?modual=space$mobile');"
									class="redColor">点击这里绑定手机</a>
							</logic:empty>
							<logic:notEmpty name="account" property="mobile">
								<bean:write name="account" property="mobile" />
							</logic:notEmpty>
						</td>
					</tr>
					<!-- 所在省份 -->
					<tr>
						<td width="20%" height="40" align="right">
							所在省份：
						</td>
						<td>
							<ad:write name="account" property="provSeq" typeid="CITY_INFO" />
						</td>
					</tr>
					<!-- 所在城市 -->
					<tr>
						<td width="20%" height="40" align="right">
							所在城市：
						</td>
						<td>
							<ad:write name="account" property="citySeq" typeid="CITY_INFO" />
						</td>
					</tr>
					<!-- 联系地址 -->
					<tr>
						<td width="20%" height="40" align="right">
							联系地址：
						</td>
						<td>
							<bean:write name="account" property="addr" />
						</td>
					</tr>
					<!-- 邮政编码 -->
					<tr>
						<td width="20%" height="40" align="right">
							邮政编码：
						</td>
						<td>
							<bean:write name="account" property="addr" />
						</td>
					</tr>
					<!-- 客户类型 -->
					<tr>
						<td width="20%" height="40" align="right">
							客户类型：
						</td>
						<td>
							<ad:write typeid="ACCOUNT_TYPE" name="account"
								property="accountType" />
						</td>
					</tr>
					<!-- 状态 -->
					<tr>
						<td width="20%" height="40" align="right">
							状态：
						</td>
						<td>
							<ad:write typeid="CUSTOMER_STATUS" name="account"
								property="status" />
						</td>
					</tr>
					<!--备注-->
					<tr>
						<td width="20%" height="40" align="right">
							备注：
						</td>
						<td>
							<bean:write name="account" property="remark" />
						</td>
					</tr>
					<!--照片-->
					<tr>
						<td width="20%" height="40" align="right">
							照片：
						</td>
						<td>
							<img alt="照片"
								src="<%=path%>/page/common/showPhoto.action?dbProperty=photo&amp;compressSize=86"
								width="86" class="personalLogo" style="cursor:hand"
								onclick="openPhoto('photo')" />
						</td>
					</tr>
					<logic:equal name="idcardStatus"
						value="<%=Constant.AUTHENTICATION_STATUS_SUBMITTED%>">
						<tr>
							<td width="20%" height="40" align="right">
								身份证：
							</td>
							<td>
								<img alt="身份证正面"
									src="<%=path%>/page/common/showPhoto.action?dbProperty=tempCardPhoto&amp;compressSize=100"
									width="86" class="personalLogo" style="cursor:hand"
									onclick="openPhoto('tempCardPhoto')" />
							</td>
						</tr>
					</logic:equal>
					<logic:equal name="idcardStatus"
						value="<%=Constant.AUTHENTICATION_STATUS_UNPASS%>">
						<tr>
							<td width="20%" height="40" align="right">
								身份证：
							</td>
							<td>
								<img alt="身份证正面"
									src="<%=path%>/page/common/showPhoto.action?dbProperty=tempCardPhoto&amp;compressSize=100"
									width="86" class="personalLogo" style="cursor:hand"
									onclick="openPhoto('tempCardPhoto')" />
								<logic:equal name="cardPhotoBack" value="show">
									<img alt="身份证背面"
										src="<%=path%>/page/common/showPhoto.action?dbProperty=tempCardPhotoBack&amp;compressSize=100"
										width="86" class="personalLogo" style="cursor:hand"
										onclick="openPhoto('tempCardPhotoBack')" />
								</logic:equal>
							</td>
						</tr>
					</logic:equal>
					<logic:equal name="idcardStatus"
						value="<%=Constant.AUTHENTICATION_STATUS_PASS%>">
						<tr>
							<td width="20%" height="40" align="right">
								身份证：
							</td>
							<td>
								<img alt="身份证正面"
									src="<%=path%>/page/common/showPhoto.action?dbProperty=cardPhoto&amp;compressSize=100"
									width="86" class="personalLogo" style="cursor:hand"
									onclick="openPhoto('cardPhoto')" />
								<logic:equal name="cardPhotoBack" value="show">
									<img alt="身份证背面"
										src="<%=path%>/page/common/showPhoto.action?dbProperty=cardPhotoBack&amp;compressSize=100"
										width="86" class="personalLogo" style="cursor:hand"
										onclick="openPhoto('cardPhotoBack')" />
								</logic:equal>
							</td>
						</tr>
					</logic:equal>
					<tr>
						<td height="55" align="right" valign="top">
							&nbsp;
						</td>
						<td>
							<input type="button" name="sure" id="button2" value="修 改"
								class="button_style"
								onclick="loading('<%=path%>/page/myspace/modifyAccountUserInfo.do');" />
							<input type="button" name="return" id="button" value="返 回"
								class="button_style"
								onclick="loading('<%=path%>/route.do?modual=space$account&showTab=3');" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
